
#ifndef COMPILE_ONLINE
// 仅仅是为了在写测试用例的时候不报错，我们在编译该文件的时候添加选项 -G COMPILE_ONLINE即可
#include "header.cpp"

#endif

void Test1()
{
    int ret = Solution().Max({1, 5, 3, 2, 8, 9, 11});
    if (ret == 11)
    {
        std::cout << "Test1 ok!" << std::endl;
    }
    else
    {
        std::cout << "Test1 failed! input: {1, 5, 3, 2, 8, 9, 11}, output: 11, your output: " << ret << std::endl;
    }
}

void Test2()
{
    int ret = Solution().Max({2, 0, 0, 6, 1, 1, 3});
    if (ret == 6)
    {
        std::cout << "Test2 ok!" << std::endl;
    }
    else
    {
        std::cout << "Test1 failed! input: {2, 0, 0, 6, 1, 1, 3}, output: 6, your output: " << ret << std::endl;
    }
}

int main()
{
    Test1();
    Test2();
    return 0;
}

// 构建在线OJ的最大工程量：创建测试用例